using System;
using System.Collections.Generic;
using System.Text;

namespace GearBlog.UnitTests
{
	using Castle.MonoRail.Framework;
	using Castle.MonoRail.TestSupport;

	public abstract class SingleControllerTestBase<T>:BaseControllerTest
		where T:Controller,new()
	{
		protected T _controller;
		private string _controllerName;
		private string _areaName;


		protected SingleControllerTestBase(string controllerName, string areaName)
		{
			_controllerName = controllerName;
			_areaName = areaName;
		}

		protected void SetupController(string action)
		{
			_controller=new T();
			PrepareController(_controller, _areaName, _controllerName, action);
		}
	}
}
